<script language="JavaScript1.2">
  <!--
  function CheckForm(form) {
    strs = "";

    if (form.keterangan.value == "") {
      strs += "Nama Potongan tidak boleh kosong\n"; }

    if (strs != "") alert(strs);
    return strs == "";
  }
  -->
</script>

<h4>MANAJEMEN SPP MAHASISWA &raquo; <span class="current_page">EDIT POTONGAN SPP MAHASISWA</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <div class="header">
    <span>EDIT POTONGAN SPP MAHASISWA</span>
	</div>
	<br class="clear"/>


  <div class="text" style="padding-left:40px">
      <br />
       <form onsubmit="return CheckForm(this)" style="display: inline; margin: 0;" method="POST" action="">
          <input type="hidden" name="id" value="<?php echo $potongan->ID ?>">
          <input type="hidden" name="nim" value="<?php echo $biodata->NIM ?>">
          <table cellspacing="1" cellpadding="4" class="box">
            <tbody>
            <tr>
              <td class="inp1">NIM</td>
              <td class="ul"><b><?php echo $biodata->NIM ?></b></td>
            </tr>
            <tr>
              <td class="inp1">Nama Mahasiswa</td>
              <td class="ul"><b><?php echo $biodata->NAMA ?></b></td>
            </tr>
            <tr>
              <td class="inp1">Program Studi</td>
              <td class="ul"><b><?php echo $biodata->NAMA_PRODI ?></b></td>
            </tr>
            <tr>
              <td class="inp1">Semester</td>
              <td class="ul"><?php echo $status_sistem->SEMESTER ?> <?php echo $status_sistem->TAHUN_AJARAN ?></td>
            </tr>
            <tr>
              <td class="inp1">Nama Potongan</td>
              <td class="ul"><input type="text" maxlength="50" size="40" value="<?php echo set_value('keterangan',isset($potongan->KETERANGAN) ? $potongan->KETERANGAN : '');?>" name="keterangan"></td>
            </tr>
            <tr>
              <td class="inp1">Nominal Potongan</td>
              <td class="ul"><input type="text" maxlength="20" size="15" value="<?php echo set_value('DefJumlah',isset($potongan->POTONGAN) ? $potongan->POTONGAN : '');?>" name="DefJumlah"></td>
            </tr>
            <tr>
              <td class="inp1">Jenis Angsuran</td>
              <td class="ul"><?php echo form_dropdown('tagihan', generate_options($options_tagihan,'ID','DESKRIPSI','ori'),set_value('tagihan',isset($potongan->ID_TAGIHAN) ? $potongan->ID_TAGIHAN: '')); ?></td>
            </tr>
            <tr>
              <td colspan="2">
                <input type="submit" class="sexybutton sexysimple sexygreen" value="Simpan" name="Simpan">
                <input type="reset" class="sexybutton sexysimple sexyblue" value="Reset" name="Reset">
                <input type="button" class="sexybutton sexysimple sexymagenta" onclick="location='<?php echo site_url('siku/PotonganSpp/'.$biodata->NIM.'.do') ?>'" value="Batal" name="Batal">
              </td>
            </tr>
            </tbody>
          </table>
       </form>

      <br />
  </div>
</div>